package org.example.infrastructure.persistence.orm;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.domain.model.entity.url.UrlShortener;

import java.util.List;

@Mapper
public interface RecycleBinMapper{
    List<UrlShortener> selectByPage(@Param(value = "gidList") List<String> gidList);

    void saveRecycleBin(@Param(value = "gid") String gid,
                        @Param(value = "fullShortUrl")String fullShortUrl);

    void recoverRecycleBin(@Param(value = "gid") String gid,
                           @Param(value = "fullShortUrl") String fullShortUrl);

    void removeRecycleBin(String gid, String fullShortUrl);
}
